package day01;

import java.io.File;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入目录名");
        String name = scan.nextLine();
        File dir = new File("./"+name);
        if (dir.exists()){
            System.out.println("该目录已存在");
        }else {
            dir.mkdirs();
            System.out.println("该目录已创建");
        }
    }
}
